package com.xh.clean.modular.clean.warpper;

import com.xh.clean.core.base.warpper.BaseControllerWarpper;
import com.xh.clean.core.common.constant.factory.ConstantFactory;

import java.util.Map;

/**
 * 卫生间包装类
 *
 * @author 杨杰
 * @create 2018-06-24 11:07
 **/
public class ToiletWarpper extends BaseControllerWarpper {
//    public ToiletWarpper(List<Map<String, Object>> list) {
//        super(list);
//    }
    public ToiletWarpper(Object list) {
        super(list);
    }
    @Override
    protected void warpTheMap(Map<String, Object> map) {
        Integer creater = (Integer) map.get("creater");
        map.put("createrName", ConstantFactory.me().getUserNameById(creater));
        Integer storeyId = (Integer) map.get("storeyId");
        map.put("storeyName",ConstantFactory.me().getStoreyNameById(storeyId));
    }
}
